package com.doerit.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.doerit.dao.UserMapper;
import com.doerit.model.User;

@Service
public class UserServiceImpl extends AbstractService {

  @Autowired
  private UserMapper userMapper;

  public User findByNameAndPassword(String email, String password) {
    return userMapper.findByNameAndPassword(email, password);
  }

  public User findByEmail(String email) {
    return userMapper.findByEmail(email);
  }

}
